package com.blockmeta.bbs.baselibrary.base.adapter;

import androidx.annotation.Nullable;
import android.view.ViewGroup;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by AirThor
 * Date 2018/1/11.
 * 此处在BaseQuickAdapter的基础上，属于使用中间层，方便截长图的适用性
 */

public abstract class BaseAdapter<T,K extends BaseViewHolder> extends BaseQuickAdapter<T,K> {

    public BaseAdapter(int layoutResId, @Nullable List<T> data) {
        super(layoutResId, data);
    }

    public  void publicConvert(K helper,T item){
        convert(helper,item);
    }

    public K createVH(ViewGroup parent, int viewType){
        return createViewHolder(parent,viewType);
    }

}
